package org.imaginedays.java.design.patter.observer;

import java.util.Observable;

public class Heater extends Observable {
	private int temperature;

	public int getTemperature() {
		return temperature;
	}

	public void setTemperature(int temperature) {
		this.temperature = temperature;
	}
	
	public void boilWater(){
		for (int i = 99; i < 110; i++) {
			temperature = i;
			this.setChanged();
			this.notifyObservers();
		}
	}

}
